layui.use(['jquery','layer','laytpl'], function() {	
	$ = layui.jquery;
	var layer = layui.layer;
	var _urlPath="../";
	var appdata={data:""};
	$.getJSON(_urlPath+'admin/netmap/buildingUser?buildingId='+parent.buildingIdCurrent+"&buildingAdress="+parent.buildingAdress+"&name")
    .done(function (json) {
    	  appdata.data=json;
    	  var app = new Vue({
    		el:'#cg-community-box',
    		data:appdata,
    		methods: {
    			getUserInfoByName: function(name){
    				$.getJSON(_urlPath+'admin/netmap/buildingUser?buildingId='+parent.buildingIdCurrent+"&buildingAdress="+parent.buildingAdress+"&name="+name,function(json){
    					appdata.data=json;
    				});    					   				
    			}
    		}
    	   })
    });
});

